import React, { Component, memo } from "react";
import ReactDOM from "react-dom/client";
import { BrowserRouter, Route, Routes, useRoutes } from "react-router-dom";
import App from "./App";
import Shudu from "./pages/Shudu";
import "./index.css";
import { Provider } from "react-redux";
// import store from "./pages/Reduxhookpage/store";
import store from "./pages/RTKPage/store";
import BrowserRouterPage from './pages/BrowserRouterPage'

import DefineRoutes from "./router";

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
  <React.StrictMode>
    {/* <BrowserRouterPage /> */}
    <Provider store={store}>
      <BrowserRouter>
        <DefineRoutes />
      </BrowserRouter>
    </Provider>
  </React.StrictMode>
);

// import Root from './pages/Reactpage'
// import _ReactDom from './components/My-react/react-dom'

// _ReactDom.render(Root, document.getElementById('root') as HTMLElement)
